package graph

/**
 * Created with IntelliJ IDEA.
 * User: Lara
 * Date: 08.05.13
 * Time: 14:33
 */
class Edge (var n1: Node, var n2: Node, var cost: Int){
//Konstruktor in der Klammer schon angegeben

  /**
   *
   * @return
   */
  def getFirstNode= n1

  /**
   *
   * @return
   */
  def getSecondNode = n2

  /**
   *
   * @return
   */
  def getCost = cost



}
